package rp.lee.callsdecline.core;

import java.util.ArrayList;
import java.util.List;

import android.app.Activity;

public class ActivityManager {

	public static List<Activity> list = new ArrayList<Activity>(8);
	
	public static synchronized void add(Activity a) {
		list.add(a);
	}
	
	public static void exit() {
		for (Activity a : list) {
			a.finish();
		}
		list.clear();
	}
}